package com.licq.ldoc.parser.impl.annotation;

import java.lang.annotation.Annotation;

import com.licq.ldoc.domain.Attribute;
import com.licq.ldoc.domain.AttributeType;
import com.licq.ldoc.parser.AnnotationParsee;

public class AssertFalseAnnotationParsee extends AnnotationParsee {

	public AssertFalseAnnotationParsee(AnnotationParsee successor) {
		super(successor);
	}
	
	@Override
	protected void doParse(Attribute attribute, Annotation annotation) {
		AttributeType type = attribute.getType();
		if (AttributeType.BOOLEAN == type || AttributeType.STRING == type) {
			attribute.appendComments(getText());
		}
	}
	
}
